package com.supermap.business.cloud.agrinfo.puberty;

import com.alibaba.dubbo.config.annotation.Reference;
import com.supermap.dubbo.api.cloud.agrinfo.puberty.PubertyService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * @author aqua
 * @description 生育期
 * @date 2018年11月08 下午 4:50
 * @email 1301584033@qq.com
 */
@Controller
@RequestMapping("/cloud/agrinfo/puberty")
public class PubertyController {

    @Reference(timeout = 10000)
    private PubertyService pubertyService;
    /**
     * 根据品种ID获取品种生育期列表;
     * @param codeId
     * */
    @RequestMapping("/getListPubertyByCropId")
    @ResponseBody
    public  List<Map<String,Object>> getListPubertyByCropId(String cropId){
        return  pubertyService.getListPubertyByCropId(cropId);
    }
}
